Routines to get paragraph position and line position of some position (theOffset) in the document.
(No use because QuoEdit now supports “paragraph position” and “line position” properties for text class. But you may be able to apply them to other applications by modifying a few points.)